//
//  JPBaseTabBarController+XLTabbar.m
//  OnePointDemo
//
//  Created by 薛磊 on 2018/7/3.
//  Copyright © 2018年 XL. All rights reserved.
//

#import "JPBaseTabBarController+XLTabbar.h"

@implementation JPBaseTabBarController (XLTabbar)


+(instancetype)xl_creatTabbarController{
    
    JPBaseTabBarController * mainTabbar = [JPBaseTabBarController new];
    
    MainViewController * mainVC = [MainViewController new];
    
    [mainTabbar addCustomChildController:mainVC title:@"首页" image:[UIImage imageNamed:@"tabbar_homepage_normal"] selectedImage:[UIImage imageNamed:@"tabbar_homepage_active"]];
    
    NewsViewController * newsVC = [NewsViewController new];
    
    [mainTabbar addCustomChildController:newsVC title:@"新闻" image:[UIImage imageNamed:@"tabbar_news_normal"] selectedImage:[UIImage imageNamed:@"tabbar_news_active"]];
    
    MallViewController * mallVC = [MallViewController new];
    
    [mainTabbar addCustomChildController:mallVC title:@"商城" image:[UIImage imageNamed:@"tabbar_mall_normal"] selectedImage:[UIImage imageNamed:@"tabbar_mall_active"]];
    
    XL_MessageViewController * messageVC = [XL_MessageViewController new];
    
    [mainTabbar addCustomChildController:messageVC title:@"友圈" image:[UIImage imageNamed:@"tabbar_contacts_normal"] selectedImage:[UIImage imageNamed:@"tabbar_contacts_active"]];
    
    XL_MineViewController * mineVC = [XL_MineViewController new];
    
    [mainTabbar addCustomChildController:mineVC title:@"我的" image:[UIImage imageNamed:@"tabbar_me_normal"] selectedImage:[UIImage imageNamed:@"tabbar_me_active"]];
    
    
    
    return mainTabbar;
}
@end
